package com.zl_huang.example.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zl_huang.example.dao.IUserRoleDaoHibernate;
import com.zl_huang.example.model.UserRole;
@Service
public class UserRoleServiceImpl implements IUserRoleService {
	@Autowired
	private IUserRoleDaoHibernate userRoleDaoHibernate;

	@Override
	public UserRole getUserRoleById(String user_id) throws Exception {
		return userRoleDaoHibernate.getUserRoleById(user_id);
		
	}

	@Override
	public UserRole getUserRoleById(Integer role_id) throws Exception {
		
		return userRoleDaoHibernate.getUserRoleById(role_id);
	}

}
